#ifndef    __HTTPUTIL_H__
#define    __HTTPUTIL_H__

/* Includes ------------------------------------------------------------------*/
#include "at32f403a_407_wk_config.h"

/* add user code end private includes */
#include "at32f403a_407_board.h"
#include <stdio.h>
#include <string.h>
#include "w5500.h"
#include "w5500_conf.h"
#include "w5500_utility.h"
#include "http_server.h"
#include "w5500_socket.h"
#include "w5500_types.h"

#define INIT        0
#define FAILED      1
#define SUCCEED     2

void proc_http(socket_t s, u_char * buf);
void https_net_task(void);
void cgi_ipconfig(st_http_request *http_request);
//void trimp(uint8* src, uint8* dst, uint16 len);
uint16_t make_msg_response(char* buf,char* msg);

void socket_send_buf(socket_t s,char * buf,uint16_t len);


void make_cgi_response(uint8_t num,char* url,char* cgi_response_buf,char* html,char* Prompt);

void make_pwd_response(char isRight,uint16_t delay,char* cgi_response_content, char isTimeout);

#endif


